package com.cskaoyan.scope;

import org.springframework.beans.factory.DisposableBean;

/**
 * 原型
 *
 * @author stone
 * @date 2021/12/27 09:55
 */
public class PrototypeBean implements DisposableBean {
    public void destroy() throws Exception {
        System.out.println("DisposableBean提供的destroy方法");
    }

    public void mydestroy() {
        System.out.println("自定义的destroy");
    }
}
